# New ASM File
ex_combat_menu:
.asciiz "\nWhat would you like to do?\n1. um\n2. umm\n3. ummm\n4. ummmm"
ex_attackone:
.asciiz "\nExeggutor uses Leaf Storm! It's super effective!"	
ex_attacktwo:
.asciiz "\nExeggutor uses Confusion! The enemy is confused! In its confusion, the enemy hurt itself!"	
ex_attackthree:
.asciiz "\nExeggutor uses Solar Beam!"	
ex_attackfour:
.asciiz "\nExeggutor uses Egg Bomb!"

ex_hitchance_one:
.word 0x00000001
ex_basedamage_one:
.word 0x00000001
ex_hitchance_two:
.word 0x00000001
ex_basedamage_two:
.word 0x00000001
ex_hitchance_three:
.word 0x00000001
ex_basedamage_three:
.word 0x00000001
ex_hitchance_four:
.word 0x00000001
ex_basedamage_four:
.word 0x00000001

ex_combat_select:
	li $a0, ex_combat_menu
	jal libplp_uart_write_string
	nop
	jal libplp_uart_read
	nop
	move $t0, $v0
	li $t1, 0x00000031
	beq $t0, $t1, ex_attack_one
	nop
	li $t1, 0x00000032
	beq $t0, $t1, ex_attack_two
	nop
	li $t1, 0x00000033
	beq $t0, $t1, ex_attack_three
	nop
	li $t1, 0x00000034
	beq $t0, $t1, ex_attack_four
	nop
	# idiot didnt enter 1-4, do it again
	j ex_combat_select
	nop
ex_attack_one:
	li $a0, ex_attackone
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, ex_hitchance_one
	lw $s4, 0($t4)
	li $t4, ex_basedamage_one
	lw $s3, 0($t4)
	j player_hit
	nop
ex_attack_two:
	li $a0, ex_attacktwo
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, ex_hitchance_two
	lw $s4, 0($t4)
	li $t4, ex_basedamage_two
	lw $s3, 0($t4)
	j player_hit
	nop
ex_attack_three:
	li $a0, ex_attackthree
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, ex_hitchance_three
	lw $s4, 0($t4)
	li $t4, ex_basedamage_three
	lw $s3, 0($t4)
	j player_hit
	nop
ex_attack_four:
	li $a0, ex_attackfour
	jal libplp_uart_write_string
	nop
	# load specific attack values
	li $t4, ex_hitchance_four
	lw $s4, 0($t4)
	li $t4, ex_basedamage_four
	lw $s3, 0($t4)
	j player_hit
	nop